package com.xbao.wchat.service;

import com.xbao.wchat.model.WxCommon;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.HashMap;

/**
 * Created by qingshengzheng on 2019/1/25.
 */
@FeignClient(name="wx",url="https://api.weixin.qq.com")
public interface ChatCenterService {
    @GetMapping(path="/sns/jscode2session")
    public WxCommon getAccessToken(HashMap<String,String> map);
    @GetMapping(path="/cgi-bin/user/info")
    public WxCommon getUserInfo(HashMap<String,String>map);



}
